<?php
/**
 * Created by PhpStorm.
 * User: cyy
 * Date: 2016/11/24
 * Time: 17:03
 */
namespace Home\Model;
use Think\Model;
class LottoModel extends Model
{
      protected $tablePrefix = "ny_prize_";
      protected $tableName = 'lotto';
      protected $connection = 'newyear';
      protected $fields = array('id', 'pname', 'type','source','num','left','item_id','numperday','v','image',
            '_type'=>array('id'=>'int','pname'=>'varchar','type'=>'int','source'=>'varchar','num'=>'int','left'=>'int','item_id'=>'int',
                 'numperday'=>'int', 'v'=>'int','image'=>'varchar'));
}

